<template>
	<view>
		<view class="chapter-list">
			<view class="item" v-for="(v,k) in beforeList" :key="k" @click.stop="toBookDetail(k,v)">
				<view class="chapter-title">
					{{v.title}}
					<view class="sub-title">
						试题60道，总分100分，及格60分，考试时间120分钟
					</view>
				<view class="read-vip">
					{{$tools.formatTime(v.creatTime,'noSecond')}}
				</view>
			   </view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {
			
		},
		data() {
			return {
				scrollTop: 0,
				scrollH: 0, 
				userInfo:"",
				beforeList: [{
						title: '2000年《高等数学》真题试卷',
						use: 10,
						sum: 100,
						rightPer: 65,
						creatTime: 1
					},
					{
						title: '第二章 高等数学',
						use: 0,
						sum: 100,
						rightPer: 0,
						creatTime: 0
					},
					{
						title: '第三章 高等物理',
						use: 0,
						sum: 100,
						rightPer: 0,
						creatTime: 0
					}
				],
				book: {},
				sumPage: 0,
				page: 1,
				limit: 10,
			};
		},
		}
</script>

<style lang="scss">
	.chapter-list {
		margin: 25rpx 25rpx 50rpx 25rpx;
	
		.title {
			color: #333;
			font-size: 30rpx;
			margin-bottom: 40rpx;
	
			text {
				margin-left: 25rpx;
				color: #555;
				font-weight: normal;
				font-size: 30rpx
			}
		}
	
		.item {
			display: flex;
			justify-content: space-between;
			padding: 25rpx 0;
			border-bottom: 1rpx #cfcfcf solid;
	
			.chapter-title {
				font-size: 30rpx;
				width: 85%;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
	
				.sub-title {
					font-size: 25rpx;
					color: #666;
				}
			}
	
			.read-vip {
				font-size: 28rpx;
				color: #666;
			}
		}
	}
</style>